<!DOCTYPE html>
<html>
<head>
    
    <include file="Common/head"/>


</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>培训机构记录</h5>
        </div>
        <div class="ibox-content">
            <div class="row row-lg">
                
                <div class="col-sm-12">
                    <div class="clearfix" style="width:100%;">
                        <div class="bars pull-left"><div class="btn-group hidden-xs" id="exampleTableEventsToolbar" role="group">
                            <button type="button" class="btn btn-outline btn-default" href="{:U('Item/edit')}">
                                <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
                            </button>
                            <button class="btn btn-default btn-outline" type="button" name="refresh" title="刷新" href="__SELF__"><i class="glyphicon glyphicon-repeat"></i></button>
                            <button type="button" class="btn btn-outline btn-default confirm" form="form" action="{:U('Item/delete')}">
                                <i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
                            </button>
                        </div></div>
                        <!--<div class="pull-right search">-->
                            <!--<input class="form-control input-outline" type="text" placeholder="搜索">-->
                        <!--</div>-->
                    </div>
                    <div class="table-responsive">
                        <form id="form" method="post">
                            <table class="table table-hover">
                                <thead>
                                <tr>
                                    <th>
                                        <label>
                                            <input type="checkbox" name="checkAll"  child="del-check">
                                            <span>全选</span>
                                        </label>
                                    </th>
                                    <th>Id</th>
                                    <th>名称</th>
                                    <th>地区</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <volist name="items" id="info">
                                    <tr>
                                        <th>
                                            <label>
                                                <input type="checkbox" class="checkbox del-check" name="id[]" value="{$info.id}">
                                                <span></span>
                                            </label>
                                        </th>
                                        <td>{$info.id}</td>
                                        <td><a href="{:U('Item/edit',array('id'=>$info['id']))}">{$info.title}</a></td>
                                        <td>{$info.district}</td>
                                        <td>
                                            {$info.status_text}
                                        </td>
                                        <td>
                                            <if condition="I('get.type','') eq 'check'">
                                                <button type="button" class="btn btn-outline btn-primary btn-sm" href="{:U('Item/edit',array('id'=>$info['id'],'type'=>'check'))}">
                                                    <i class="fa fa-edit"></i>
                                                     审核
                                                </button>
                                            <else/>
                                                <button type="button" class="btn btn-outline btn-primary btn-sm" href="{:U('Item/edit',array('id'=>$info['id']))}">
                                                    <i class="fa fa-edit"></i>
                                                    编辑
                                                </button>
                                                <button type="button" href="{:U('Item/delete',array('id'=>$info['id']))}" class="btn btn-outline btn-default btn-sm confirm">
                                                    <i class="fa fa-trash"></i>
                                                    删除
                                                </button>
                                            </if>
                                            <!--<button type="button" class="btn btn-primary" onclick="window.location.href='{:U('Item/edit',array('id'=>$info['id']))}';">-->
                                            <!--编辑-->
                                            <!--</button>-->
                                            <!--<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">-->
                                            <!--审核-->
                                            <!--</button>-->
                                            <!--<div class="modal inmodal in" id="myModal" tabindex="-1" role="dialog" aria-hidden="true" style="display: none;">-->
                                            <!--<div class="modal-dialog">-->
                                            <!--<div class="modal-content animated bounceInRight">-->
                                            <!--<div class="modal-header">-->
                                            <!--<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span>-->
                                            <!--</button>-->
                                            <!--<i class="fa fa-laptop modal-icon"></i>-->
                                            <!--<h4 class="modal-title">审核</h4>-->
                                            <!--<small class="font-bold">审核培训机构。-->
                                            <!--</small></div><small class="font-bold">-->
                                            <!--<div class="modal-body">-->
                                            <!--<p>请审核</p>-->
                                            <!--<div class="form-group"><label>原因</label> <input type="text" placeholder="请输入原因" class="form-control"></div>-->
                                            <!--</div>-->
                                            <!--<div class="modal-footer">-->
                                            <!--<button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>-->
                                            <!--<button type="button" class="btn btn-primary">保存</button>-->
                                            <!--</div>-->
                                            <!--</small></div><small class="font-bold">-->
                                            <!--</small></div><small class="font-bold">-->
                                            <!--</small></div>-->
                                        </td>
                                    </tr>
                                </volist>
                                </tbody>
                            </table>
                        </form>
                        
                    </div>
    
                    <ul class="pagination">
                        {$page}
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-- End Panel Other -->
</div>
<include file="Common/footer"/>
<script src="__JS__/content.min.js?v=1.0.0"></script>
</body>
</html>
